home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / shopdrop.swf / scripts / __Packages / smashing / ClipHandler.as < prev    next >
Text File  |  2007-09-27  |  569b  |  29 lines

  1. class smashing.ClipHandler
  2. {
  3.    function ClipHandler(objHome, nOffset)
  4.    {
  5.       if(nOffset == undefined)
  6.       {
  7.          nOffset = 0;
  8.       }
  9.       this.offset = nOffset;
  10.       this.home = objHome;
  11.       this.clips = [];
  12.       this.openSlots = [];
  13.       this.id = smashing.ClipHandler.nId++;
  14.    }
  15.    function findFirstEmpty()
  16.    {
  17.       var _loc2_ = 0;
  18.       if(this.openSlots.length == 0)
  19.       {
  20.          _loc2_ = this.clips.length;
  21.       }
  22.       else
  23.       {
  24.          _loc2_ = this.openSlots.pop();
  25.       }
  26.       return _loc2_;
  27.    }
  28. }
  29.